import { createRouter, createWebHistory } from 'vue-router'


const routes = [
    {
        name: "Root",
        path: "/",
        component: () => import('@/App.vue')
    },
    {
        name: "Home",
        path: "/home",
        component: () => import('@/pages/home/index.vue')
    },
    {
        name: 'DsManage',
        path: '/dsManage',
        component: () => import('@/pages/ds-manage/index.vue')
    },
    {
        name: 'TaskGroupManage',
        path: '/taskGroupManage',
        component: () => import('@/pages/task-group/index.vue')
    },
    {
        name: 'TaskManage',
        path: '/taskManage',
        component: () => import('@/pages/task-manage/index.vue')
    },
    {
        name: 'ExecutorMonitor',
        path: '/executorMonitor',
        component: () => import('@/pages/executor-monitor/index.vue')
    },
    {
        name: 'TaskRecord',
        path: '/taskRecord',
        component: () => import('@/pages/task-record/index.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router